package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
/**
 * 客户订单内的所有商品
 */
@Data
@TableName("t_order_info")
public class UserOrderInfoProductEntity implements Serializable {

    @TableId(value = "pk_infoId", type = IdType.AUTO)
    private long pk_infoId;

    @TableField("fk_orderRef")
    private String orderRef;//订单编号外键

    @TableField("i_productRef")
    private String productRef;//商品编号

    @TableField("i_prodcutName")
    private String prodcutName;//商品名

    @TableField("i_productNumber")
    private int productNumber;//商品数量

    @TableField("i_productPrice")
    private double productPrice;//商品单价

    @TableField("i_productColor")
    private String color;//颜色

    @TableField("i_productType")
    private String type;//类型

    @TableField("i_totalPrice")
    private double totalPrice;//总价


    @TableField(exist = false)
    private UserOrderEntity userOrderEntity;//商品对应的订单


}
